#include <stdio.h>

int main()
{
  int a = 123;
  int b = 321;

  int c = a^b;
  printf("%d\n",c);

  printf("%d\n",c^a);
}
